import request from '@/utils/request'

// 分页查询
export function getGroupControlList(data) {
    return request({
        url: '/getGroupControlList?ydz=' + data.ydz + '&pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
        method: 'post'
    })
}
// 获取域地址下发
export function sendYdzByGw(data) {
    return request({
        url: '/sendYdzByGw?gwMac=' + data.gwMac + '&numberNo=' + data.numberNo + '&sadder=' + data.sadder,
        method: 'post'
    })
}
// 获取网关信息
export function sendYdzByGwInfo(gwMac) {
    return request({
        url: '/sendYdzByGwInfo?gwMac=' + gwMac,
        method: 'post'
    })
}
// 设置设备序号
export function sendDevNumberNo(data) {
    return request({
        url: '/sendDevNumberNo?gwMac=' + data.gwMac + '&numberNo=' + data.numberNo + '&sadder=' + data.sadder,
        method: 'post'
    })
}
// 单控
export function sendSingleControl(data) {
    return request({
        url: '/sendSingleControl',
        method: 'post',
        data: data
    })
}
// 群控
export function sendGroupControl(data) {
    return request({
        url: 'sendGroupControl?gwMac=' + data.gwMac + '&devNumber=' + data.devNumber + '&typeStatus=' + data.typeStatus + '&statusType=' + data.statusType + '&statusTypeVal=' + data.statusTypeVal,
        method: 'post'
    })
}